// SFPSGCollection_BPA.cpp: implementation of the CSFPSGCollection_BPA class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "../../Include/Swi/SFPSGCollection_BPA.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CSFPSGCollection_BPA::CSFPSGCollection_BPA()
{

}

CSFPSGCollection_BPA::~CSFPSGCollection_BPA()
{

}

CSFPSG_BPA* CSFPSGCollection_BPA::GetFirstSFPSG()
{
	return (CSFPSG_BPA*)CCardCollection_BPA::GetFirstCard();
}

CSFPSG_BPA* CSFPSGCollection_BPA::Traverse(CSFPSG_BPA *pSFPSG, int nDirection)
{
	return (CSFPSG_BPA*)CCardCollection_BPA::Traverse(pSFPSG,nDirection);
}

CSFPSG_BPA* CSFPSGCollection_BPA::GetSFPSG(char *strBusName, double dkV, char nID)
{
	CSFPSG_BPA tempSFPSG;
	strcpy(tempSFPSG.m_strName,strBusName);
	tempSFPSG.m_dkV = dkV;
	tempSFPSG.m_chID = nID;
	return (CSFPSG_BPA*)CCardCollection_BPA::GetCard(&tempSFPSG);
}